<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
          integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
            integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
            crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
            integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
            crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
            integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
            crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
    <div class="col">
        <form action="/filterSSD/" method="post">
            {% csrf_token %}
            <table class="table table-hover">
                <tbody>
                <tr>
                    <th>品牌</th>
                    <td>
                        <select class="custom-select" name="Brand">
                            <option selected value="">选择品牌</option>
                            <option value="三星">三星</option>
                            <option value="英睿达">英睿达</option>
                            <option value="影驰">影驰</option>
                            <option value="东芝">东芝</option>
                            <option value="闪迪">闪迪</option>
                            <option value="浦科特">浦科特</option>
                            <option value="特科芯">特科芯</option>
                            <option value="爱国者">爱国者</option>
                            <option value="闪战">闪战</option>
                            <option value="科赋">科赋</option>
                            <option value="PNY">PNY</option>
                            <option value="台电">台电</option>
                            <option value="瑞势">瑞势</option>
                            <option value="七彩虹">七彩虹</option>
                            <option value="金泰克">金泰克</option>
                            <option value="朗科">朗科</option>
                            <option value="佰维">佰维</option>
                            <option value="金胜维">金胜维</option>
                            <option value="金士顿">金士顿</option>
                            <option value="建兴">建兴</option>
                            <option value="太阳花">太阳花</option>
                            <option value="海盗船">海盗船</option>
                            <option value="士必得">士必得</option>
                            <option value="西部数据">西部数据</option>
                            <option value="长江存储·致态">长江存储·致态</option>
                            <option value="铠侠">铠侠</option>
                            <option value="威刚">威刚</option>
                            <option value="赛帝曼克">赛帝曼克</option>
                            <option value="Intel">Intel</option>
                            <option value="铨兴">铨兴</option>
                            <option value="艾比格特">艾比格特</option>
                            <option value="雷克沙">雷克沙</option>
                            <option value="大华">大华</option>
                            <option value="京东京造">京东京造</option>
                            <option value="达墨">达墨</option>
                            <option value="联想">联想</option>
                            <option value="阿斯加特">阿斯加特</option>
                            <option value="梵想">梵想</option>
                            <option value="移速">移速</option>
                            <option value="海康">海康</option>
                            <option value="威视">威视</option>
                            <option value="金百达">金百达</option>
                            <option value="幻隐">幻隐</option>
                            <option value="梅捷">梅捷</option>
                            <option value="Acer宏碁">Acer宏碁</option>
                            <option value="希捷">希捷</option>
                            <option value="惠普">惠普</option>
                            <option value="大普微">大普微</option>
                            <option value="技嘉">技嘉</option>
                            <option value="铭瑄">铭瑄</option>
                            <option value="美光">美光</option>
                            <option value="光威">光威</option>
                            <option value="金储星">金储星</option>
                            <option value="创见">创见</option>
                            <option value="先锋">先锋</option>
                            <option value="长江存储">长江存储</option>
                            <option value="储尊">储尊</option>
                            <option value="飞利浦">飞利浦</option>
                            <option value="麦光">麦光</option>
                            <option value="忆捷">忆捷</option>
                            <option value="msi微星">msi微星</option>
                            <option value="饥饿鲨">饥饿鲨</option>
                            <option value="宇瞻亿储">宇瞻亿储</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>硬盘容量</th>
                    <td>
                        <select class="custom-select" name="Capacity">
                            <option selected value="">选择硬盘容量</option>
                            <option value="4TB">4TB</option>
                            <option value="2TB">2TB</option>
                            <option value="1TB">1TB</option>
                            <option value="960GB">960GB</option>
                            <option value="512GB">512GB</option>
                            <option value="500GB">500GB</option>
                            <option value="256GB">256GB</option>
                            <option value="250GB">250GB</option>
                            <option value="128GB">128GB</option>
                            <option value="120GB">120GB</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>接口类型</th>
                    <td>
                        <select class="custom-select" name="Slot">
                            <option selected value="">选择接口类型</option>
                            <option value="SATA3">SATA3接口</option>
                            <option value="M.2 SATA">M.2 SATA接口</option>
                            <option value="M.2 PCIe">M.2 PCIe接口</option>
                            <option value="mSATA">MSATA接口</option>
                            <option value="PCI-E">PCI-E接口</option>
                        </select>
                    </td>
                </tr>
                </tbody>
                <tr>
                    <td></td>
                    <th>
                        <button type="submit" class="btn btn-primary">筛选</button>
                    </th>
                </tr>

            </table>
        </form>
    </div>
    <div class="col">
        {% for case in cases %}
        <div class="card">
            <div class="card-body">
                <h5 class="card-title">{{case.Name}}</h5>
                <p class="card-text">适用平台:{{case.Platform}}</p>
                <p class="card-text">硬盘容量:{{case.Capacity}}</p>
                <p class="card-text">接口类型:{{case.Slot}}</p>
                <p class="card-text">价格:￥{{case.Price}}</p>
                <div class="btn-group" role="group" aria-label="Basic example">
                    <form action="/configReturnSSD/" method="post">
                        {% csrf_token %}
                        <input name="id" hidden="hidden" value="{{case.Name}}">
                        <button type="submit" class="btn btn-primary">添加到配置单</button>
                    </form>
                    <form action="/moreInfoSSD/" method="post">
                        {% csrf_token %}
                        <input name="id" hidden="hidden" value="{{case.Name}}">
                        <button type="submit" class="btn btn-primary">详细信息</button>
                    </form>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
</body>
</html>